home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / math / mrcry209 / cardioid.eka < prev    next >
Text File  |  1992-11-03  |  257b  |  11 lines

  1. ; Graph of cardioid, a heart-shaped curve.
  2. ; Example of parametric plot
  3.  
  4. r(t) := 2 (COS(t) + 1)        ; equation in polar coords
  5. x(t) := r(t) COS(t)           ; polar to rectangular conversion
  6. y(t) := r(t) SIN(t)
  7.  
  8. PLOT y
  9. XAXIS x
  10. GBOUNDS 0, 2 PI
  11.